package com.tao.service;

import com.tao.pojo.Answerer;
import com.tao.pojo.Miaosha;
import org.apache.ibatis.annotations.Delete;

import java.util.List;
import java.util.Map;

/**
 * @Author: alubus
 * @Date: 2021/11/11 17:05
 * @Package: com.tao.service
 */

public interface MiaoshaService {

    void setMiashaSum(Long id,int sum);

    int reduceMiaoshaSum(Long id,int sum);

    int reduceMiaoshaSumOne(Long id);

    int reduceByMq(Long id,int sum);

    int getMiaoshaSum(Long id);
//    秒杀订单 下单
    @Delete("这里写法错了，吧秒杀显示兰当成下单了")
    String StByMs(Long qid);

//    查询 秒杀商品，注意：id是字符串
    Answerer selectAnswererByMid(Long aid);

    List<Long> getMiaoshaIds();

    Map<String,Integer> getMiaoshaValues();

    List<Answerer> getAnswerersByKeys();
}
